package com.feign.Controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ex-chensb001
 */
@RestController
@RequestMapping("/producer/")
public class ProducerController {
    @Value("${server.port}")
    String port;

    @Value("${spring.application.name}")
    String applicationName;

    @GetMapping("/hello")
    public String hello() {
        return "hello " + applicationName + "! ,my port is:" + port;
    }
}